<template>
  <VSnakeModal
    v-model="visible"
    :modalTitle="modalTitle"
    style="width: 32rem; height: 18rem;"
  >
  <div class="activity-list">
    <div v-for="item in 6" :key="item" class="activity-item">
      <div class="activity-title">活动标题</div>
      <div>
        规则内容******************
        规则内容******************
        规则内容******************
      </div>
    </div>
  </div>
  </VSnakeModal>
</template>

<script>

export default {
  name: 'VPlayingMethodModal',
  components: {
  },
  data() {
    return {
      visible: false,
      modalTitle: ''
    };
  },

  mounted() {
    
  },

  methods: {
    openModal({title}) {
      this.modalTitle = title
      this.visible = true
    },
  },
};
</script>

<style lang="scss">
.snake-modal {
  overflow: visible !important;
  .van-dialog__content {
    height: 100%;
  }
  .snake-title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.4rem;
    font-size: 1.2rem;
    line-height: 2.4rem;
    position: relative;
  }
  .snake-close-icon {
    position: absolute;
    right: -0.6rem;
    top: -0.6rem;
    width: 2rem;
    height: 2rem;
    background-color: #fff;
    border: 0.1rem solid red;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .activity-list {
    width: 90%;
    margin: auto;
    border-radius: 0.2rem;
    height: calc(100% - 0.3rem);
    background-color: rgb(255, 145, 0);
    overflow: auto;
    padding: 0.6rem 1rem;
    box-sizing: border-box;
    .activity-item {
      width: 100%;
      height: 6rem;
      border-radius: 1rem;
      background-color: rgb(255, 222, 178);
      margin-bottom: 0.4rem;
      padding: 0 1rem;
      box-sizing: border-box;
    }
    .activity-title {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      font-weight: bold;
      height: 2.4rem;
    }
  }
}
</style>